package cn.zyq.ykb.beans.msg;

import cn.zyq.ykb.system.common.BaseBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 消息对象 msg
 *
 * @author SystemAuth
 * @date 2023-05-24
 */
@Data
@Entity
@Table(name = "`msg`")
public class Msg  extends BaseBean implements Serializable {
    /**
     * 主键id，用于关联
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "JDBC")
    @Column(name = "`msgID`")
    @ApiModelProperty("主键id，用于关联")
    private Integer msgID;
    /**
     * 消息标题
     */
    @Column(name = "`title`")
    @ApiModelProperty("消息标题")
    private String title;
    /**
     * 消息内容
     */
    @Column(name = "`content`")
    @ApiModelProperty("消息内容")
    private String content;
    /**
     * 消息类型，1提醒消息，2活动福利，3审核消息
     */
    @Column(name = "`msgType`")
    @ApiModelProperty("消息类型，1提醒消息，2活动福利，3审核消息")
    private Integer msgType;
    /**
     * 关联业务ID
     */
    @Column(name = "`relatedServiceID`")
    @ApiModelProperty("关联业务ID")
    private String relatedServiceID;
    /**
     * 用户ID
     */
    @Column(name = "`userID`")
    @ApiModelProperty("用户ID")
    private Integer userID;
    /**
     * 0未读，1已读
     */
    @Column(name = "`readed`")
    @ApiModelProperty("0未读，1已读")
    private Integer readed;
    /**
     * 0未发送，1已发送
     */
    @Column(name = "`sended`")
    @ApiModelProperty("0未发送，1已发送")
    private Integer sended;
}
